import 'package:get/get.dart';
import 'package:xinxuan/http/http_util_service.dart';
import 'package:xinxuan/vo/bank_card_list_vo.dart';
import 'package:xinxuan/vo/common_vo/common_bank_card_item_vo.dart';

class BankPageController extends GetxController {
  /// 银行卡数据
  var dataArr = <CommonBankCardItemVo>[].obs;

  @override
  void onReady() {
    getBankCardList();
    super.onReady();
  }

  /// 获取银行卡列表
  getBankCardList() async {
    BankCardListVo bankCardListVo = await HttpUtilService.getBankCardList();
    dataArr.value = bankCardListVo.data!;
    update();
  }
}